package com.smart.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value="com-smart-admin-entity-ChinaArea")
@Data
@TableName(value = "china_area")
public class ChinaArea {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Short id;

    @TableField(value = "parent_id")
    @ApiModelProperty(value="")
    private Integer parentId;

    /**
     * 省市名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value="省市名称")
    private String name;

    @TableField(value = "`type`")
    @ApiModelProperty(value="")
    private Boolean type;

    public static final String COL_ID = "id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_NAME = "name";

    public static final String COL_TYPE = "type";
}